/**
 * Copyright (C), 2001-2031, www.bosssof.com.cn
 * FileName: FeignService.java
 * Author: YuXingZh
 * Date: 14/6/2024 下午9:49
 * Description:
 * <p>
 * History:
 * Date          Author   Version  Desc
 * 2024-01-01    bosssoft  1.0.0   initialize this file
 */
package com.bosssoft.g1.gateway.service;

import com.bosssoft.g1.common.data.vo.CommonResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import javax.validation.constraints.NotNull;

/**
 * @className: FeignService
 * @description:
 * 解决什么问题：
 *  演示线程池的正确使用 
 * 主要方法和数据成员：
 *  methodxx 使用 ThreadPoolExecutor创建线程进行任务操作
 * 注意事项：
 *  例如：该类需要从容器获取不可以new   
 * @author: YuXingZh
 * @date: 14/6/2024下午9:49
 * @since 1.0
 **/
@Service
@Component
//@FeignClient:微服务客户端注解,value:指定微服务的名字,这样就可以使Feign客户端直接找到对应的微服务
@FeignClient(name = "server-auth-server", url = "http://106.52.17.164:20004")
public interface FeignServiceClient {
    @RequestMapping(value = "/oauth/checkToken", method = RequestMethod.GET)
    CommonResponse<Boolean> checkToken(@RequestParam("token") String token);
}
